/*
 * TitleList.h
 *
 *  Created on: 6 May 2010
 *      Author: Savramis Sartios
 */

#ifndef TITLELIST_H_
#define TITLELIST_H_
#include "ITitleList.h"
#include <map>
using namespace std;

class TitleList : public ITitleList {
/*	friend class TitleIterator;*/
public:
	TitleList();
	virtual ~TitleList();
	virtual ITitleListIterator *	getIterator();
	virtual int			count()const;
	virtual string *	getElement(const string *code)const;
	virtual bool		add(const string *code,const string *title);
	virtual map<string*,string*>::iterator getStart();
private:
	map<string*,string*> list_;
};

#endif /* TITLELIST_H_ */
